import request from '@/utils/request'

export default {
  findAllComment(current, size, targetId, targetType) {
    return request({
      url: `/api/comments/getComments`,
      method: 'get',
      params: {
        current, size, targetId, targetType
      }
    })
  },

  submitComment({targetId, targetType, content, parentId}) {
    return request({
      url: `/api/comments/saveComment`, // 这里用你的实际接口地址替换
      method: 'post',
      data: {
        targetId,
        targetType,
        content,
        parentId
      }
    })
  }
}
